﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Knihotoc_WP8.CustomControls
{
    class GridID : Grid
    {
        public const string IDName = "ID";
        public static readonly DependencyProperty IDProperty = DependencyProperty.Register(IDName, typeof(int), typeof(GridID), new PropertyMetadata(int.MinValue));

        /// <summary>
        /// Gets or sets the ID of the grid.
        /// </summary>
        public int ID
        {
            get
            {
                return (int)GetValue(IDProperty);
            }

            set
            {
                this.SetValue(IDProperty, value);
            }
        }
    }
}
